import Axios from "axios";

const api = Axios.create({
    baseURL:"http://39.99.143.114:7001"
})

export function getuserlist(){
    return api.post('/blog/findalllength')
}
export function getusercreat(todaynews,todayends,yestodaynews,twonews,threenews,fournews,fivenews){
    return api.post('/blog/useradtime',{todaynews,todayends,yestodaynews,twonews,threenews,fournews,fivenews})
}
export function getuserinfo(){
    return api.post('/blog/userfindall')
}
export function deleteuser(uid){
    return api.post('/blog/userdestroy', {uid})
}

export function findrelease(page){
    return api.post('/blog/releasefind',{page})
}

export function releasedelete(releaseid){
    return api.post('/blog/releasedelete',{releaseid})
}

export function releaselike(search){
    return api.post('/blog/releaselike',{search})
}

export function appointfind(page){
    return api.post('/blog/appointfind',{page})
}

export function appointdelete(appointmentid){
    return api.post('/blog/appointdelete',{appointmentid})
}

export function appointlike(search){
    return api.post('/blog/appointlike',{search})
}

export function adminfind(role){
    return api.post('/blog/adminfind',{role})
}

export function admindestory(adminid){
    return api.post('/blog/admindestory',{adminid})
}

export function adminlogin(admin,adpasd){
    return api.post('/blog/adminlogin',{admin,adpasd})
}

export function admincreat(admin,adpasd,role){
    return api.post('/blog/admincreat', {admin,adpasd,role})
}

export function carousefind(){
    return api.post('/blog/carousefind')
}

export function carousecreat(arouselurl){
    return api.post('/blog/carousecreat',{arouselurl})
}

export function carousedestory(carouselid){
    return api.post('/blog/carousedestory', {carouselid})
}

export function tutorialfind(){
    return api.post('/blog/tutorialfind')
}

export function tutorialdelete(tutorialid){
    return api.post('/blog/tutorialdelete',{tutorialid})
}

export function tutorialike(search){
    return api.post('/blog/tutorialike',{search})
}

export function fieldfind(){
    return api.post('/blog/fieldfind')
}

export function fielddelete(fieldid){
    return api.post('/blog/fielddelete',{fieldid})
}

export function fieldlike(search){
    return api.post('/blog/fieldlike',{search})
}

export function noticecreat(noticemsg){
    return api.post('/blog/noticecreat',{noticemsg})
}

export function noticefind(){
    return api.post('/blog/noticefind')
}

export function noticedestory(noticeid){
    return api.post('/blog/noticedestory',{noticeid})
}


